﻿
using Autodesk.Revit.UI;
using AutoRevit;

namespace AutoRevitDemo.Events;

public class AutoEvent
{
    [AutoExternalEventHandler]
    public static void AddEvent(UIApplication uiApplication)
    {
        // 业务代码
        TaskDialog.Show("AddEvent", "AddEvent");
    }

    [AutoExternalEventHandler(ClassName = nameof(RemoveEvent))]
    internal static void RemoveEvent(UIApplication uiApplication) 
    {
        // 业务代码
        TaskDialog.Show("RemoveEvent", "RemoveEvent");
    }
}
